You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SquareTone Method > SignalUtils.SquareTone Method ([In] TVec, int, double, double, double, bool, [In] int)
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.SquareTone Method ([In] TVec, int, double, double, double, bool, [In] int)

Generate a square wave function.

Syntax
C#
Visual Basic
public static void SquareTone([In] TVec Dst, int SampleCount, double Freq, double Phase, double Mag, bool Complex, [In] int MaxHarmonics);

Generate a square wave signal with frequency Freq, initial Phase and amplitude Mag. Set Complex to true to generate a complex signal. The routine is not stream capable. Dst.IsDouble will be used to determine floating point precision.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!